package icu.d4peng.basic.log.properties;

import icu.d4peng.basic.core.constant.ProjectConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * LogStashProperties:logstash属性
 *
 * @author d4peng <a href="d4peng@qq.com">d4peng@qq.com</a>
 * @since 2023.12.09
 */
@Data
@ConfigurationProperties(prefix = LogStashProperties.PREFIX)
public class LogStashProperties {
    /**
     * 前缀
     */
    public static final String PREFIX = ProjectConstant.PREFIX + ".log.stash";
    /**
     * 是否开启
     */
    private boolean enabled = false;
    /**
     * 地址
     */
    private String url = "127.0.0.1";
    /**
     * 端口
     */
    private Integer port = 4056;
}
